import api from './index'

// 首页
export default {
	// 平台的优惠券列表
	fetchSysCouponList: (params) => api.get('/system/coupon/listAppNet', params),
	// 用户领取优惠券
	receiveCoupon: (params) => api.get('/system/userCoupon/receiveListAppNet', params),
	// banner图
	fetchBannerList: (params) => api.get('/system/banner/appList', params),
	// 首页门店列表
	fetchShopList: (params) => api.get('/system/store/appList', params),
	// 门店详情
	fetchShopDetail: (id) => api.get('/system/store/' + id),
	// 获取门店预约时间
	fetchReserveTime: (params) => api.get('/system/store/appointment', params),
	// 可选择项目类别
	fetchProjectType: (params) => api.get('/system/item/type/appList', params),
	// 可选择项目列表
	fetchProjectList: (params) => api.get('/system/item/store/appList', params),
	// 项目详情
	fetchProjectDetail: (id) => api.get('/system/item/store/' + id),
	// 获取城市下拉数据
	fetchAreaList: (params) => api.get('/system/china/getListOpened', params),
	// 小程序门店推荐项目
	fetchAppletItem: (params) => api.get('/system/item/store/appletItem', params),
	// 技师是被预约
	fetchTechbicanChick: (params) => api.post('/system/transition', params)
}